Much of the code for this program has been kindly provided by Stefan Pendl at megabit@t-online.at showing how to use STM.DLL to generate Speech. Here is how I have managed to adapt his ideas to produce speech from within a LB program. Originally I had mentioned to Stefan that an old DOS speech Synthesiser I had use in conjunction with some LB programs of mine, no longer functioned properly with the latest high speed CPUs. This presumably is due to its parameters being unable to slow the program down sufficiently.
He kindly searched the net and found an excellent alternative by way of the STM.DLL intended originally for use with Rapid-Q produced by John White at yoingco@onetel.net.uk , who welcomes its use for other languages. When I pointed it was way beyond my capabilities to understand how to adapt the code supplied to LB, he provided the necessary routines used in the program below. I have also updated another program intended to help the disabled unable to speak WSPEECH2, which can be obtained from [http://www.gsweet.fsnet.co.uk/LBlearn.zip]
You may wish to experiment by changing the initial Constants and Variables. You can see it will read form any ASCII or TXT file, or from text entered, and can access Notepad to amend or create suitable files. I will not read Word DOC files but you can of course COPY and PASTE text from any other program into Notepad to create a readable file.
Gordon Sweet
Please see the zip archive for this issue for a sample program and a copy of the STM.DLL.